package com.qd.panda.dc.dto.charge;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 开始/停止充电
 *
 * @author sjk
 */
@Data
@Accessors(chain = true)
@ToString
@JsonPropertyOrder(alphabetic = true)
@JsonIgnoreProperties(value = {"ACTION_START", "ACTION_STOP", "ACTION_POLICY", "ACTION_STATUS"})
public class ChargeActionReqDTO {
    public static final String ACTION_START = "start";
    public static final String ACTION_STOP = "stop";
    public static final String ACTION_POLICY = "policy";
    public static final String ACTION_STATUS = "status";

    /**
     * 动作:start、stop、policy、status
     */
    private String action;
    /**
     * 设备接口编号
     */
    @JsonProperty("connectorID")
    private String connectorID;
    /**
     * 运营商编号
     */
    @JsonProperty("operatorID")
    private String operatorID;
    /**
     * 订单号
     */
    private String startChargeSeq;

    public void freeData() {
        this.action = null;
        this.connectorID = null;
        this.operatorID = null;
        this.startChargeSeq = null;
    }
}
